package jym.tan.tmdb.bean.wrapper;

import java.io.Serializable;
import java.util.List;

import jym.tan.tmdb.bean.Base;
import jym.tan.tmdb.bean.Release;

import com.google.gson.annotations.SerializedName;

/**
 * The Class MovieReleaseWrapper. The Wrapper class which holds the 
 * {@link List} of {@link Release} and other information.
 * <p>
 * 	The properties are:
 * 	<ul>
 * 		<li>id</li>
 * 		<li>countries</li>
 * 	</ul>
 * </p>	
 * @author Tanmoy
 */
public class MovieReleaseWrapper extends Base implements Serializable {

	private static final long serialVersionUID = -3597854049175298229L;

	@SerializedName("countries")
	private List<Release> countries;
	
	/**
	 * Default Constructor.
	 */
	public MovieReleaseWrapper() {
		
	}

	/**
	 * Gets the {@link List} of country {@link Release}.
	 *
	 * @return 
	 * 		The countries
	 */
	public List<Release> getCountries() {
		return countries;
	}

	/**
	 * Sets the {@link List} of country {@link Release}.
	 *
	 * @param countries 
	 * 		The new countries
	 */
	public void setCountries(List<Release> countries) {
		this.countries = countries;
	}
	
	/* (non-Javadoc)
	 * @see jym.tan.tmdb.bean.Base#toString()
	 */
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("{").
			append("id:").append(id).
			append(",").
			append("countries:").append(countries).
			append("}");
		return builder.toString();
	}
}
